package com.yby.mall.product.dao;

import com.yby.mall.product.dto.AttrDto;
import com.yby.mall.product.dto.AttrGroupWithAttrDto;
import com.yby.mall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author yangbingying
 * @email 2771355658@qq.com
 * @date 2021-07-09 20:49:20
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    List<AttrDto> queryPageNoAttr(@Param("attrGroupId") Long attrGroupId, @Param("key") String key);

    List<AttrGroupWithAttrDto> withAttrList(@Param("catalogId") Long catalogId);
}
